package com.bt.dmdb.model;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "ODS_NOTES")
@SuppressWarnings("serial")
public class Note implements java.io.Serializable {

    private BigDecimal id;
    private BigDecimal parentReferenceId;
    private String type;
    private String description;

    public Note() {
    }

    public Note(BigDecimal id) {
        this.id = id;
    }

    public Note(BigDecimal id, BigDecimal parentReferenceId, String type, String description) {
        this.id = id;
        this.parentReferenceId = parentReferenceId;
        this.type = type;
        this.description = description;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false, scale = 0)
    public BigDecimal getId() {
        return this.id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    @Column(name = "PARENT_REFERENCE_ID", scale = 0)
    public BigDecimal getParentReferenceId() {
        return this.parentReferenceId;
    }

    public void setParentReferenceId(BigDecimal parentReferenceId) {
        this.parentReferenceId = parentReferenceId;
    }

    @Column(name = "TYPE", length = 20)
    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Column(name = "DESCRIPTION", length = 2000)
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
